Xbasic

Office::Excel2003DocumentCopySheet Method

Syntax

.CopySheet as Office::Spreadsheet (Name as C, Index as N)

Arguments

NameCharacter

The name of the new spreadsheet.

IndexNumeric

The index of the sheet to copy.

Returns

resultOffice::Spreadsheet

Returns the spreadsheet.

Description

Add a new spreadsheet to the document with the name specified by copying the contents of the sheet at index N.

See Also